* Use dh_install --fail-missing to catch mistakes
* Add a symbols file
* Add missing dependency on libglib2.0-dev
+ * Add an ostree-tests package, and use it for autopkgtest
-- Simon McVittie <smcv@debian.org> Wed, 27 Jan 2016 13:04:34 +0100
disadvantages) of both.
.
This package contains configuration snippets for using ostree with GRUB 2.
+
+Package: ostree-tests
+Architecture: any
+Depends:
+ ${misc:Depends},
+ ${shlibs:Depends},
+ attr,
+ ca-certificates,
+ gir1.2-gsystem-1.0,
+ gir1.2-ostree-1.0,
+ gjs,
+ ostree,
+ python,
+Description: content-addressed filesystem for operating system binaries - tests
+ OSTree is a tool for managing bootable, immutable, versioned filesystem trees.
+ It is not a package system; nor is it a tool for managing full disk images.
+ Instead, it sits between those levels, offering a blend of the advantages (and
+ disadvantages) of both.
+ .
+ This package contains automated tests.
--- /dev/null
+usr/lib/*/ostree/installed-tests
+usr/share/installed-tests/ostree
dh_auto_configure -- \
--disable-silent-rules \
--enable-gtk-doc \
+ --enable-installed-tests \
--with-dracut \
--with-grub2 \
--with-systemdsystemunitdir=/lib/systemd/system \
$(NULL)
+ chmod +x tests/*.js
override_dh_install:
rm -f debian/tmp/usr/lib/*/*.la
+ rm -f debian/tmp/usr/lib/*/ostree/installed-tests/*.la
dh_install --fail-missing
+
+override_dh_fixperms:
+ dh_fixperms -X'*.js'
+ chmod -v +x debian/tmp/usr/lib/*/ostree/installed-tests/*.js
+ chmod -v +x debian/tmp/usr/lib/*/ostree/installed-tests/*.py
+ chmod -v +x debian/tmp/usr/lib/*/ostree/installed-tests/*.sh
--- /dev/null
+#!/bin/sh
+
+set -e
+exec 2>&1
+set -x
+
+cd "$ADTTMP"
+
+cat > trivial.c <<EOF
+#include <ostree.h>
+
+int main (void)
+{
+ g_object_unref (ostree_repo_new_default ());
+ return 0;
+}
+EOF
+
+gcc -o trivial trivial.c $(pkg-config --cflags --libs ostree-1 gobject-2.0)
+test -x trivial
+./trivial
+echo "ok 3 run it"
--- /dev/null
+Tests: gnome-desktop-testing
+Depends: gnome-desktop-testing, ostree-tests
+
+Tests: build
+Depends: build-essential, libostree-dev, pkg-config
--- /dev/null
+#!/bin/sh
+
+set -e
+exec 2>&1
+
+exec gnome-desktop-testing-runner ostree